package org.alino.core.filter.data;

import java.io.Serializable;

/**
 * @Desc TODO jQuery Bootstrap Table Plug-in
 * @Author by Brant
 * @Date 2017/04/13
 */
public class PageFilter implements Serializable {
    public static final String ORDER_ASC = "asc";
    public static final String ORDER_DESC = "desc";
    private String search;
    private String sort;
    private String order;
    private Integer offset;
    private Integer limit;

    private static final long serialVersionUID = -2225558438864183674L;

    public PageFilter() {
    }

    public PageFilter(Integer offset, Integer limit) {
        this.offset = offset;
        this.limit = limit;
    }

    public PageFilter(String sort, String order, Integer offset, Integer limit) {
        this.sort = sort;
        this.order = order;
        this.offset = offset;
        this.limit = limit;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
